package game.model.objets;

//import game.Utils;
import java.awt.Dimension;
import java.awt.Point;
import javax.swing.ImageIcon;

/**
 *
 * @author Gab'z
 */
public abstract class ElementJeu {

    private String idPlan;
    protected String id;
    private String description;
    private int posX;
    private int posY;
    protected ImageIcon imgJeu;
    protected boolean visible;

    public ElementJeu(String idPlan, String description, boolean isVisible, int posX, int posY) {
        this.idPlan = idPlan;
        this.id = this.getClass().getSimpleName();
        this.description = description;
        this.visible = isVisible;
        this.posX = posX;
        this.posY = posY;
    }

    public String getIdPlan() {
        return idPlan;
    }

    public String getId() {
        return id;
    }

    public String getDescription() {
        return description;
    }

    public Point getPosition() {
        return new Point(posX, posY);
    }

    public Dimension getDimension() {
        return new Dimension(imgJeu.getIconWidth(), imgJeu.getIconHeight());
    }

    public ImageIcon getImgJeu() {
        return imgJeu;
    }

    public boolean isVisible() {
        return visible;
    }

    public void setVisible(boolean visible) {
        this.visible = visible;
    }

    public abstract void executeActionClicVue();
    
}
